package com.fudan.gamestore.pojo;

import java.util.List;

public class Game {
    private Integer gameId;
    private String gameName;
    private Double price;
    private String gameImg;
    private String description;
    private Integer saleCount;
    private List<String> detailGameImg;  // Json List<String> in database
    private String gameType;

    public Game() {
    }

    public Game(Integer gameId, String gameName, Double price, String gameImg, String description, Integer saleCount,
                List<String> detailGameImg, String gameType) {
        this.gameId = gameId;
        this.gameName = gameName;
        this.price = price;
        this.gameImg = gameImg;
        this.description = description;
        this.saleCount = saleCount;
        this.detailGameImg = detailGameImg;
        this.gameType = gameType;
    }

    public Integer getGameId() {
        return gameId;
    }

    public void setGameId(Integer gameId) {
        this.gameId = gameId;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getGameImg() {
        return gameImg;
    }

    public void setGameImg(String gameImg) {
        this.gameImg = gameImg;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getSaleCount() {
        return saleCount;
    }

    public void setSaleCount(Integer saleCount) {
        this.saleCount = saleCount;
    }

    public List<String> getDetailGameImg() {
        return detailGameImg;
    }

    public void setDetailGameImg(List<String> detailGameImg) {
        this.detailGameImg = detailGameImg;
    }

    public String getGameType() {
        return gameType;
    }

    public void setGameType(String gameType) {
        this.gameType = gameType;
    }

    @Override
    public String toString() {
        return "Game{" +
                "gameId=" + gameId +
                ", gameName='" + gameName + '\'' +
                ", price=" + price +
                ", gameImg='" + gameImg + '\'' +
                ", description='" + description + '\'' +
                ", saleCount=" + saleCount +
                ", detailGameImg=" + detailGameImg +
                ", gameType='" + gameType + '\'' +
                '}';
    }
}